@name yt {
  @b checkBox {
    padding: 10px;

    @when block {
      display: flex;
      align-items: center;
    }

    @when inline {
      display: inline-block;
      & .yt-checkBox-wrapper.is-left {
        margin-right: 0;
      }
    }

    @e wrapper {
      display: inline-block;
      vertical-align: middle;
      @when left {
        margin-right: 10px;
      }
    }

    @e label {
      flex: 1;
      line-height: 1.5;
      font-size: 14px;
      overflow: hidden;
    }

    @e input {
      display: none;
      &:checked + .yt-checkBox-core {
        background-color: var(--fill_color);
        &.is-simple {
          background-color: transparent;
        }

        &::after {
          transform: rotate(45deg) scale(1);
        }
      }

      &[disabled] + .yt-checkBox-core {
        background-color: var(--disabled_color);
        border-color: var(--disabled_color);
      }
    }

    @e core {
      position: relative;
      display: inline-block;
      vertical-align: middle;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      border: 1px solid var(--border_color);

      &::after {
        position: absolute;
        content: " ";
        top: 4px;
        left: 7px;
        width: 4px;
        height: 8px;
        border-width: 0 2px 2px 0;
        border-style: solid;
        transform: rotate(45deg) scale(0);
        transition: transform .2s;
        border-color: #ffffff;
      }

      @when simple {
        border: 1px solid transparent;
        &::after {
          top: 3px;
          width: 5px;
          height: 10px;
          border-color: var(--border_color)
        }
      }
    }
  }
}
